﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DLL.PicNews
{
	/// <summary>
	/// 图片新闻数据类
	/// </summary>
	/// <![CDATA[2014-8-19 14:13:23]]>
	public class Database : DataBaseBase
	{
		#region 表结构属性
		public int FILENAME = 2;
		public int PICFILENAME = 3;
		public int SHOWDATE = 4;
		public int USERID = 5;
		public int DEPARTMENTID = 6;
		public int DATETIME = 7;
		public int IP = 8;
		public int FILECONTENTID = 9;
		public int PICCONTENTID = 10;
		#endregion 表结构属性

		#region 构造函数
		/// <summary>
		/// 数据类构造函数
		/// </summary>
		/// <![CDATA[2014-8-19 14:13:23]]>
		public Database(System.Web.UI.Page page)
			: base("[PicNews]", page)
		{
			_strOrder = " ORDER BY CAST ("+listStructure[DATETIME].strName+" AS DATETIME) DESC";
		}
		#endregion 构造函数

	}
}
